﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MODEL
{
    public partial class qgzx_cwy_fleet
    {
        #region 纯的实体对象 + ToPOCO()
        /// <summary>
        /// 纯的实体对象
        /// </summary>
        /// <returns></returns>
        public qgzx_cwy_fleet ToPOCO()
        {
            qgzx_cwy_fleet poco = new qgzx_cwy_fleet()
            {
                FleetId = this.FleetId,
                General = this.General,
                Introduce = this.Introduce,
                Stations = this.Stations,
                WorkPlace = this.WorkPlace,
                OfficePhone = this.OfficePhone,
                Leader = this.Leader,
                StudentName = this.StudentName,
                StudentNum = this.StudentNum,
                Volunteers = this.Volunteers,
                Passengers = this.Passengers,
                GroupNums = this.GroupNums,
                StartTime = this.StartTime,
                EndTime = this.EndTime
            };
            return poco;
        }
        #endregion

        #region 1.0 生成 TViewModel 实体对象 +ToViewModel
        /// <summary>
        /// 生成 很纯洁的 实体对象
        /// </summary>
        /// <returns></returns>
        public ViewModel.CwyFleet ToViewModel()
        {
            ViewModel.CwyFleet poco = new ViewModel.CwyFleet()
            {
                FleetId = this.FleetId,
                General = this.General,
                Introduce = this.Introduce,
                Stations = this.Stations,
                WorkPlace = this.WorkPlace,
                OfficePhone = this.OfficePhone,
                Leader = this.Leader,
                StudentName = this.StudentName,
                StudentNum = this.StudentNum,
                Volunteers = this.Volunteers,
                Passengers = this.Passengers,
                GroupNums = this.GroupNums,
                StartTime = this.StartTime,
                EndTime = this.EndTime
            };
            return poco;
        }
        #endregion
    }
}
